package com.ruoyi.web.controller.his;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.his.domain.AppDeleteTask;
import com.ruoyi.his.service.IAppDeleteTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/deleteTask")
public class AppDeleteTaskController  extends BaseController {
    @Autowired
    private IAppDeleteTaskService appDeleteTaskService;
    @PostMapping("/updateDays")
    public AjaxResult updateDays(@RequestBody  AppDeleteTask appDeleteTask){
        int i= appDeleteTaskService.updateDeleteById(appDeleteTask);
        return toAjax(i);
    }
    @GetMapping("/list")
    public List<AppDeleteTask> getList() {
        return appDeleteTaskService.getDeleteData();
    }
}
